package org.tnaggs.project.repository;

import org.springframework.jdbc.core.JdbcTemplate;

public class ConversionRepository {

	private JdbcTemplate template;
	
	public ConversionRepository(JdbcTemplate template) {
		this.setTemplate(template);
	}

	public JdbcTemplate getTemplate() {
		return template;
	}

	public void setTemplate(JdbcTemplate template) {
		this.template = template;
	}
	
	public String getRole(int RoleID) {
		return template.queryForObject("Select type from Role where Role_ID = " + RoleID, String.class);
	}
	
}
